import request from '@/utils/request';
import { message } from 'antd';
const Qs = require('qs');

export const apiGetData = () => {
  request('/user/list').then((res) => {
    console.log(res, 'res');
  });
};

export const apiGetDva = () => {
  return request('/api/users/1');
};

export const apiLogin = (params: any) => {
  const data = Qs.stringify(params);
  return request(`/register/cellphone/?${data}`, {
    // method: 'get',
  });
};
